<?php
namespace app\common\model;

use think\Model;

class Channel extends Model
{
    protected $connection = 'db_config_aiqi';
	public static function getUserByUsername($username)
	{
		$user = self::where('username', $username)->find();
		return $user;
	}

    public static function getUserById($id)
    {
        $user = self::find($id);
        return $user;
    }

    public function getChannelList()
    {
        return $this->where(["status"=>1])->select();
    }
	
}